package com.type.dao;

import java.util.ArrayList;
import java.util.HashMap;

import javax.annotation.Resource;

import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

import com.type.vo.DateTaskVO;

@Repository(value="DateTaskDAO")
public class DateTaskDAO {
	@Resource(name="sqlMapClientTemplate")
	private SqlMapClientTemplate sqlmap;
	
	@SuppressWarnings("unchecked")
	public ArrayList<DateTaskVO> selectTaskByIdNDate(String userId, String date){
		HashMap<String,String> map = new HashMap<String,String>();
		map.put("userId", userId);
		map.put("selDate", date);
		return (ArrayList<DateTaskVO>) sqlmap.queryForList("taskDate.selectDateTaskByIDDay",map);
	}
}
